#
# Be sure to run `pod lib lint DDIM.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
    s.name             = 'DDIM'
    s.version          = '1.1.3'
    s.summary          = 'DD 聊天'
    s.homepage         = 'https://gitee.com/ddhans/DDIM.git'
    s.license          = { :type => 'MIT', :file => 'LICENSE' }
    s.author           = { '772729579@qq.com' => '772729579@qq.com' }
    s.source           = { :git => 'https://gitee.com/ddhans/DDIM.git', :tag => s.version.to_s }
    s.ios.deployment_target = '8.0'
    s.requires_arc = true
    
    s.subspec 'DDIMKit' do |sub|
        sub.source_files = 'DDIM/DDIMKit/DDIM.h',
                           'DDIM/DDIMKit/Module/*.{h,m}', 'DDIM/DDIMKit/Module/**/*.{h,m}',
                           'DDIM/DDIMKit/Tool/*.{h,m}', 'DDIM/DDIMKit/Tool/**/*.{h,m}',
                           'DDIM/DDIMKit/Vendor/GCDAsyncSocket/*.{h,m}','DDIM/DDIMKit/Vendor/GCDAsyncSocket/**/*.{h,m}',
                           'DDIM/DDIMKit/Vendor/MLLabel/*.{h,m}', 'DDIM/DDIMKit/Vendor/MLLabel/**/*.{h,m}'
        
        sub.subspec 'ProtocolBuffers' do |ssub|
            ssub.source_files = 'DDIM/DDIMKit/Vendor/ProtocolBuffers_iOS/*.{h,m}', 'DDIM/DDIMKit/Vendor/ProtocolBuffers_iOS/**/*.{h,m}'
            ssub.public_header_files = 'DDIM/DDIMKit/Vendor/ProtocolBuffers_iOS/*.{h}', 'DDIM/DDIMKit/Vendor/ProtocolBuffers_iOS/**/*.{h}'
            ssub.requires_arc = false
        end

        sub.dependency 'DDUIKit/DDActionSheet'
        sub.dependency 'DDUIKit/DDAlertView'
        sub.dependency 'DDUIKit/DDTextView'
        sub.dependency 'HSPhotoBrowser'

        sub.dependency 'FMDB'
        sub.dependency 'IQKeyboardManager'
        sub.dependency 'Protobuf'
        sub.dependency 'HSCategoryKit'
        sub.dependency 'HSToolKit'
        sub.dependency 'HSVendorManager'

        sub.resource_bundles = {
            'DDIM' => ['DDIM/DDIMKit/DDIM.bundle/*.png']
        }
    end
    
end
